package com.huawei.java.main;

import com.huawei.java.main.client.ClientDemand;
import com.huawei.java.main.io.Reader;
import com.huawei.java.main.optimization.CleanOptimization;
import com.huawei.java.main.server.ServerBandwidth;
import com.huawei.java.main.server.ServerClientQos;

import java.util.List;

public class Main {

	public static void main(String[] args) {

		List<String[]> demandStrings = Reader.readCsvFile("D:\\CodePro\\idea\\codecraft2022\\data\\test\\demand.csv");
		List<String[]> bandWidthstrings = Reader.readCsvFile("D:\\CodePro\\idea\\codecraft2022\\data\\test\\site_bandwidth.csv");
		Integer integer = Reader.readIniFile("D:\\CodePro\\idea\\codecraft2022\\data\\test\\config.ini");

		List<String[]> qosStrings = Reader.readCsvFile("D:\\CodePro\\idea\\codecraft2022\\data\\test\\qos.csv");
		ServerClientQos serverClientQos = new ServerClientQos(qosStrings, integer);

		ServerBandwidth serverBandwidth = new ServerBandwidth(bandWidthstrings);
		ClientDemand clientDemand = new ClientDemand(demandStrings);

		clientDemand.setServerClientQos(serverClientQos);
		clientDemand.setServerBandwidth(serverBandwidth);
		clientDemand.setClientBandWidth();

		CleanOptimization optimizationCost = new CleanOptimization(clientDemand);

		optimizationCost.sum();
	}

}
